package org.goyo.main.services.system.impl;

import java.util.List;

import javax.annotation.Resource;

import org.goyo.common.exception.DBException;
import org.goyo.common.exception.ServiceException;
import org.goyo.main.domain.dao.system.ISysUserRoleDao;
import org.goyo.main.domain.entity.system.SysUserRole;
import org.goyo.main.services.system.ISysUserRoleService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class SysUserRoleServiceImpl implements ISysUserRoleService {
	@Resource
	private ISysUserRoleDao sysUserRoleDao;
	
	@Override
	public List<SysUserRole> findByUserId(String userId) throws ServiceException,DBException {
		return sysUserRoleDao.findByUserId(userId);
	}

}
